module.exports = {
  plugins: {
    autoprefixer: {}
  },
  rules: [
    // ...其他规则
    {
      test: /\.m?js$/,
      exclude: /node_modules/,
      use: {
        loader: 'babel-loader',
        options: {
          presets: ['@babel/preset-env']
        }
      }
    }
  ]
}
